package 单例;

/**
 * 饿汉
 */
public class NotLazy {
    /**
     * 加了final，线程安全
     */
    private static final Test test=new Test();
    private NotLazy(){

    }

    public Test getTest() {
        return test;
    }
}
